<template>
    <div>
        <head-bar middleText="药械圈" :leftClick="returnPage" height="80"></head-bar>

    </div>
</template>
<!--全局通用样式-->
<style>

    .text-minor {
        font-size: 30px;
        color: #c4c4c4;
    }

    .text-gray {
        font-size: 30px;
        color: #878787;
    }

    .text-notmal {
        font-size: 30px;
        color: #272727;
    }

    .text-important {
        font-size: 30px;
        color: #000000;
        font-weight: 800;
    }

    .text-success {
        font-size: 30px;
        color: #01a65a;
    }


</style>

<script>
    import headBar from '../components/headBar.vue'
    import cellSelect from '../components/cellSelect.vue'
    import cellDate from '../components/cellDate.vue'
    import nw from '../network/nw.js'
    import cellInput from '../components/cellInput.vue'
    const nav = weex.requireModule('navigator')
    var param = nav.param()

    export default {
        components: {headBar,cellInput,cellSelect,cellDate},
        data:()=>({
            searchForm:{},
            orderTypes:[
                {name:'完整订单',value:1000},
                {name:'专供订单',value:1100},
                {name:'线下订单',value:1200},
            ],
            orderStats:[
                {name:'待接单',value:1200},
                {name:'待确认',value:1300},
                {name:'待付款',value:1400},
                {name:'待发货',value:1500},
                {name:'待收货',value:1600},
                {name:'已完成',value:1700},
                {name:'已作废',value:1800},
            ]
        }),
        methods:{
            //返回上个页面
            returnPage() {
                nav.back()
            },

            //订单类型
            getOrderType(data){
//                this.searchForm.orderStatus = data[0]
            },

            //订单状态
            getOrderStat(){
                this.searchForm.orderStatus = data[0]
            },

            //更新时间开始
            getUpdateDateStartVal(data){
                this.searchForm.orderUpdateTimeStart = data
            },

            //更新时间结束
            getUpdateDateEndVal(){
                this.searchForm.orderUpdateTimeEnd = data
            },

            //下单开始时间
            getOrderTimeStartVal(){
                this.searchForm.orderTimeStart = data
            },
            //下单结束时间
            getOrderTimeEndVal(){
                this.searchForm.orderTimeEnd = data
            },
            //搜索订单
            searchForm(){

            }
        }
    }

</script>